import Layout from '@/layout'

const hospitalRouter = {
  path: '/hospital',
  component: Layout,
  redirect: '/example/list',
  name: '医院管理',
  meta: {
    title: '医院管理',
    icon: 'el-icon-s-help'
  },
  children: [
    {
      path: 'create',
      component: () => import('@/views/hospital/create'),
      name: '新增医院',
      meta: { title: '新增医院', icon: 'edit' }
    },
    {
      path: 'edit/:id(\\d+)',
      component: () => import('@/views/hospital/edit'),
      name: '修改医院',
      meta: { title: '修改医院', noCache: true, activeMenu: '/hospital/list' },
      hidden: true
    },
    {
      path: 'list',
      component: () => import('@/views/hospital/list'),
      name: '医院列表',
      meta: { title: '医院列表', icon: 'list' }
    }
  ]
}

export default hospitalRouter
